package com.legal.aid.app.domain.doc;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.legal.aid.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

public class NewsDoc implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 新闻id
     */
    private Long newsId;

    /**
     * 新闻标题
     */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /**
     * 副标题
     */
    @Excel(name = "副标题")
    private String subtitle;

    /**
     * 封面图url
     */
    @Excel(name = "封面图url")
    private String coverImageUrl;

    /**
     * 新闻内容
     */
    @Excel(name = "新闻内容")
    private String newsContent;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * "新闻类别'0业内资讯',1'热点新闻','2法律速递','3企业新闻','4视频'"
     */
    @Excel(name = "新闻类别'0业内资讯',1'热点新闻','2法律速递','3企业新闻','4视频'")
    private String newsCategory;

    /**
     * 浏览次数
     */
    @Excel(name = "浏览次数")
    private Long viewCount;



    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setCoverImageUrl(String coverImageUrl) {
        this.coverImageUrl = coverImageUrl;
    }

    public String getCoverImageUrl() {
        return coverImageUrl;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void setNewsCategory(String newsCategory) {
        this.newsCategory = newsCategory;
    }

    public String getNewsCategory() {
        return newsCategory;
    }

    public void setViewCount(Long viewCount) {
        this.viewCount = viewCount;
    }

    public Long getViewCount() {
        return viewCount;
    }


    @Override
    public String toString() {
        return "NewsVo{" +
                "newsId=" + newsId +
                ", newsTitle='" + newsTitle + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", coverImageUrl='" + coverImageUrl + '\'' +
                ", newsContent='" + newsContent + '\'' +
                ", author='" + author + '\'' +
                ", newsCategory='" + newsCategory + '\'' +
                ", viewCount=" + viewCount +
                '}';
    }
}
